package cn.yiyuan.org.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @user m
 * @project system
 * @date 2023-10-28
 * @package cn.yiyuan.org.query
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class DepQuery {
    //关键字
        private String keyword;
    //总条数
    private Integer pageSize;
    //当前页
    private Integer currentPage;

    public int getStart(){
        return (currentPage-1)*pageSize;
    }
}
